<%include file='admin/tuvi/header.html'%>
<script type="text/javascript">
    function confirm_delete() {
      return confirm('Bạn có muốn xóa bản ghi này không?');
    }
</script>
<div class="grid">
    <div class="row">
        <%include file='admin/tuvi/menu.html'%>

        <div class="span9">
            <h2 id="_default"><i class="icon-accessibility on-left"></i><%$act_title%></h2>
            <div class="example">
                <form action="?mod=tuvi&act=listTuvi" method="post">
                    <div class="input-control text">
                        <input type="text" name="search" placeholder="Tìm kiếm" value="<%$strSearch%>" onkeyup="showHint(this.value)"/>
                        <button class="btn-search" name="btnSearch"></button>
                    </div>
                </form>
                <table class="table bordered hovered">
                    <thead>
                    <tr>
                        <th class="text-left">Tuổi</th>
                        <th class="text-left" width="50px">Xóa</th>
                    </tr>
                    </thead>
                    <tbody>
                    <%if count($list) > 0%>
                        <%foreach from=$list item=value%>
                        <tr>
                            <td><a href="?mod=tuvi&act=edit&id=<%$value['id']%>"><%$value['ages']%></a></td>
                            <td class="center"><a href="?mod=tuvi&act=delete&id=<%$value['id']%>" onclick="return confirm_delete()"><span class="icon-remove"></span></a></td>
                        </tr>
                        <%/foreach%>
                    <%/if%>
                    </tbody>
                    <tfoot></tfoot>
                </table>
                <%$paging%>
            </div>
        </div>
    </div>
</div>
<%include file='admin/layout/notice.html'%>